package storage.sql;

/**
 * The SimpleDB version of the java.sql.ResultSetMetaData interface.
 * This interface implements a subset of the methods in that
 * interface. 
 * @author Edward Sciore
 */
public interface ResultSetMetaData {
	
	/**
	 * Returns the number of fields in the result set.
	 * @return the number of fields in the result set
	 * @throws SQLException
	 */
	public int    getColumnCount()              throws SQLException;
	
	/**
	 * Returns the name of the field at the specified position
	 * in the result set.  Columns begin at 1.
	 * @param column the integer column number
	 * @return the name of the field at the column
	 * @throws SQLException
	 */
	public String getColumnName(int column)     throws SQLException;
	
	/**
	 * Returns the type of the field at the specified position
	 * in the result set.  Columns begin at 1.
	 * @param column the integer column number
	 * @return the type of the field at the column
	 * @throws SQLException
	 */
	public int    getColumnType(int column)     throws SQLException;
	
	/**
	 * Returns the display size of the field at the specified position
	 * in the result set.  Columns begin at 1.
	 * @param column the integer column number
	 * @return the display size of the field at the column
	 * @throws SQLException
	 */
	public int getColumnDisplaySize(int column) throws SQLException;
}

